﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoTest.Domain;
using EasyTool;
using SKIT.FlurlHttpClient.Wechat.TenpayV3.Models;

namespace AutoTest.Business.Options
{
    /// <summary>
    /// 应用程序配置
    /// </summary>
    public class AppSettingOption : IDbOption
    {
        /// <summary>
        /// 开启调试订单
        /// </summary>
        [OptionDescription("开启调试订单")]
        public bool OrderDebug { get; set; } = false;
        /// <summary>
        /// 订单间隔时间
        /// </summary>
        [OptionDescription("订单间隔时间")]
        public int OrderTimeSpan { get; set; } = 5 * 60;
        /// <summary>
        /// 是否分账
        /// </summary>
        [OptionDescription("是否分账")]
        public bool IsProfitSharing { get; set; } = false;

        /// <summary>
        /// 
        /// </summary>
        [OptionDescription("",Ignore = true)]
        public string OptionKey => AppConsts.APPSETTING_APP;
        /// <summary>
        /// 注册默认密码
        /// </summary>
        [OptionDescription("注册默认密码")]
        public string DefaultPassword { get; set; } = "AT";
    }
}
